#include"stack.h"
int main()
{
	int i = 0;
	int num = 0;
	ST s;
	INTIstack(&s);
	stackpush(&s, 1);
	stackpush(&s, 2);
	stackpush(&s, 3);
	stackpush(&s, 4);
	stackpush(&s, 5);
	num = stacksize(&s);
	for (i=0; i <= num; i++)
	{
		printf("%d->", s.a[i]);
	}
	printf("\n");
	stackpop(&s);
	stackpop(&s);
	num = stacksize(&s);
	for (i = 0; i <= num; i++)
	{
		printf("%d->", s.a[i]);
	}
	printf("\n");
	int top = stacktop(&s);
	printf("ps->a[top]=%d", top);
	return 0;
}